package org.csu.zhangdian.persistence;

import org.csu.zhangdian.dao.RateDAO;
import org.csu.zhangdian.domain.LevelRate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;
import java.sql.Connection;

@Repository
public class RateDAOImpl implements RateDAO {

    @Autowired
    private DataSource dataSource;

    @Override
    public void setRateDAO(LevelRate levelRate) {
        try {

            Connection connection=dataSource.getConnection();

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
